var app = getApp();
Page({
    /**
     * 页面的初始数据
     */
    data: {
        list: ["小纸条", "学习打卡", "表白墙", "失物招领"]
    },
    navigator(e) {
        var checkLogin = app.globalData.checkUserInfo
        // console.log(e);
        if(checkLogin.nickName == undefined) {
            wx.showToast({
                icon: 'error',
                title: '请先登录',
            })
        }else{
            wx.navigateTo({
                url: "../add/add?index="+ e.currentTarget.dataset.index +"&listInfo="+ e.currentTarget.dataset.listinfo +" ",
            })
        }

    }
})